package in.ac.iitb.cse.nlp.postagger;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

public class ConnectSQLite {
	public static void main(String[] args) {
		String PATH = "";
		Connection connection = null;
		ResultSet resultSet = null;
		Statement statement = null;
		try {
			Class.forName("org.sqlite.JDBC");
			connection = DriverManager.getConnection("jdbc:sqlite:" + PATH);
			statement = connection.createStatement();
			resultSet = statement.executeQuery("SELECT * FROM t1");
			while (resultSet.next()) {
				System.out.println("data:" + resultSet.getString("data"));
			}
		} catch (Exception e) {
			e.printStackTrace();
		} finally {
			try {
				resultSet.close();
				statement.close();
				connection.close();
			} catch (SQLException e) {
				e.printStackTrace();
			}
		}
	}
}
